//
//  BBHomeTableViewCell.m
//  BlockBrowser
//
//  Created by Mac on 2018/3/30.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "BBScanHistoryTableViewCell.h"
#import <WebKit/WebKit.h>
@interface  BBScanHistoryTableViewCell()
@property(nonatomic, strong) WKWebView                     *webView;
@end
@implementation BBScanHistoryTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 44;
}

#pragma mark --subView
- (void)configSubView{

    self.iconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 0, 30, 30)];
    self.iconImageView.centerY = [[self class] cellHeight]/2;
    [self addSubview:self.iconImageView];
    
    self.titlable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconImageView.right  +10, 0, UIScreenWidth - 25 - self.iconImageView.right, [[self class] cellHeight]/2)
                                                     text:@""
                                                textColor:[BBThemeColorManger manger].firstTextColor
                                                     font:15
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.titlable];
    
    self.subTitleLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconImageView.right  +10, [[self class] cellHeight]/2, UIScreenWidth - 25 - self.iconImageView.right, [[self class] cellHeight]/2)
                                              text:@""
                                         textColor:SecendTextColor
                                              font:13
                                       isSizetoFit:NO
                                     textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.subTitleLable];
    
    
}

@end


